import {createStore} from 'vuex'

export default createStore({
    state: {
        rulesData:[
                [
                    {
                        id:1,
                        message:"作品完整性",
                        percent:"10%"
                    },
                    {
                        id:2,
                        message:"作品结构",
                        percent:"20%"
                    },
                    {
                        id:3,
                        message:"答辩成绩",
                        percent:"30%"
                    },
                    {
                        id:4,
                        message:"文档成绩",
                        percent:"30%"
                    },
                    {
                        id:5,
                        message:"分工情况",
                        percent:"10%"
                    }
                ],
        ]
    },
    getters: {},
    mutations: {
        setRulesData: (state, rulesData) => {
            state.rulesData.push(rulesData)

        },
    },
    actions: {},
    modules: {}
})
